package cn.kgcnews.listener;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

import cn.kgcnews.pojo.User;

public class UserActiveListener implements HttpSessionBindingListener {
//private  List<User> list=new ArrayList<User>();//用户列表
private static int lineCount=0;
	public int getLineCount() {
	return lineCount;
}



	@Override
	public void valueBound(HttpSessionBindingEvent e) {
		//HttpSession session=e.getSession();
		//session.getAttribute(arg0);
		//e.g
		lineCount++;
	}

	@Override
	public void valueUnbound(HttpSessionBindingEvent e) {
		
        lineCount--;
	}

}
